package com.test.model;

import java.util.Date;

/**
 * 
 * @author Administrator
 *@hibernate.class table="t_user"
 */
public class User {
	/**
	 * @hibernate.id
	 * 		generator-class="native"
	 */
	private int userid;
	/**
	 * @hibernate.property
	 */
	private String username;
	/**
	 * @hibernate.many-to-one
	 * 		column="groupid"
	 * 		cascade="all"
	 * 		class="com.test.model.Group"
	 */
	private Group group;
	/**
	 * @hibernate.property
	 */
	private String password;
	/**
	 * @hibernate.property
	 */
	private String email;
	/**
	 * @hibernate.property
	 */
	private String question;
	/**
	 * @hibernate.property
	 */
	private String answer;
	/**
	 * @hibernate.property
	 */
	private Date createtime;
	/**
	 * @hibernate.property
	 */ 
	private int status;
	
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getQuestion() {
		return question;
	}

	public void setQuestion(String question) {
		this.question = question;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Group getGroup() {
		return group;
	}

	public void setGroup(Group group) {
		this.group = group;
	}

	
}
